<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

/**
 * Class TimeSetServiceProvider
 * @package App\Providers
 * Author:芳君君
 * Time:2016年2月15日22:29:01
 * Content:时间操作集合,麻痹没心情写。
 */
class TimeSetServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        //不知道做什么
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        //不知道做什么
    }

    private $time_point = 0;

    private $time_slot = 0;

    public function setTime($time_point,$time_slot){

        $this->time_point = $time_point;

        $this->time_slot = $time_slot;

    }
    public function getTime(){
        return [$this->time_point,$this->time_point];
    }
    /*
     * 时间交集
    */
    public function intersect(){

    }
    /*
     * 时间差集
    */
    public function diff(){

    }
    /*
     * 时间并集
    */
    public function merge(){

    }
}
